package Java练习.面向对象综合练习.多态.练习一;

public class Person {
    private String nama;
    private int age;
    //定义空参
    public Person() {
    }

    public Person(String nama, int age) {
        this.nama = nama;
        this.age = age;
    }

    public String getNama() {
        return nama;
    }

    public void setNama(String nama) {
        this.nama = nama;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }


    public void show(){
        System.out.println(nama+","+age);
    }
}
